package com.supplychainapi.service;

import com.supplychainapi.domain.account.AuthEntity;
import com.supplychainapi.domain.account.SystemAuthEntity;
import com.supplychainapi.domain.account.UserShopEntity;
import com.supplychainapi.model.Tbuser;

import java.util.List;
import java.util.Map;

public interface TbuserService {
    int save(Tbuser user);
    Tbuser findOne(Tbuser user);
    Map<String, Map<String, String>> findAllAuth();
    SystemAuthEntity findSysUserAuth(String fsShopGUID, String fsUserId);
    List<AuthEntity> findUserAuthList(String fsShopGUID, String fsUserId);

    boolean LoginCache(String fsShopGUID, String jwtToken, Tbuser tbuser);
    // 查询账号中心缓存
    boolean AccountInfoCache(String fsShopGUID, String jwtToken, Tbuser tbuser);

    String findUserCompanyGUID(String fsShopGUID, String fsUserId);
    List<UserShopEntity> findUserShopList(String fsShopGUID, String fsUserId);
}